<?php
/**
 * An order object (Datamapper)
 *
 * @author Ishtiaque Shahrier <md.ishtiaque@newgenbd.net>
 * @package order
 * @subpackage models
 */
class shipping_info_m_order extends a_base_model_datamapper {

    public function __construct($id=null) {
        $this->table = 'order_shipping_info';
        $this->has_many = array(
        );
        $this->has_one = array(
        );
        parent::__construct($id);
    }

    public function get_carrier_obj(){
        $shipping_manager = new shipping_manager();
        $obj = $shipping_manager->get_carrier_object($this->shipping_carrier_id);
        unset ($shipping_manager);
        return $obj;
    }
}
?>